package com.flying.discoveryclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class MainController {
    @Value("${eureka.client.service-url.defaultZone}")
    private String discoveryServer;

    @GetMapping("/")
    public Mono<String> rootInfo() {
        return Mono.just(discoveryServer);
    }
}
